<?php

require_once(dirname(__FILE__)."/lib/DB.php");
require_once(dirname(__FILE__)."/lib/EdException.php");


$db=new DB();

$keyword=$_GET['keyword'];

try{

$sumSoftwareList=$db->searchInSummary($keyword); 
$descSoftwareList=$db->searchInDesc($keyword);
}catch(ErrorException $e){
  go404();
}

$db->close();

?>


<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title><?php echo $keyword ?> Free Download</title>
<meta name="keywords" content="<?php echo $keyword ?> Free Download, Download <?php echo $keyword ?>, <?php echo $keyword ?>, Free <?php echo $keyword ?>" />
<meta name="description" content="<?php echo $keyword ?> Free Download,<?php echo $keyword ?> Software Collection Download" />
<link rel="stylesheet" type="text/css" href="css/public.css">
</head>

<body>

<div id="top">
<div id="frame">
<div class="tl"><h1 class="page-h1"><a href="#">DownladV.com, Your <?php echo $keyword ?> free Software Download Portal.</a></h1></div>
<div class="tr">
  <div align="right"><a href="#">
<img src="http://www.downloadto.com/images/1_02.jpg" /></a><a href="#">
<img src="http://www.downloadto.com/images/1_03.jpg" /></a></div>
</div>
<div id="tnr"><a href="http://www.downloadto.com"><h1>DownloadTo</h1></a>
<div class="tr"><script type="text/javascript"><!--
google_ad_client = "pub-6095026974399688";
/* 468x60, 创建于 11-5-11 */
google_ad_slot = "3531353071";
google_ad_width = 468;
google_ad_height = 60;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script></div>
</div>
<div id="nav">
<ul>
<li><a href="#" class="hover">Home</a></li>
<li><a href="#">Categories</a></li>
<li><a href="#">New releases</a></li>
<li><a href="#">Most popular</a></li>
<li><a href="#">Our picks</a></li>
<li><a href="#">Submit your software</a></li>
</ul>
</div>
<div id="search">
  <form id="sform" name="form1" method="post" action="">
  <input type="text" name="textfield" id="stext" />
  <input type="submit" name="button" id="sbut" value="" />
  </form>
<div class="key"><a href="#">avi dvd,</a>   <a href="#">Google Earth,</a>   <a href="#">outlook,</a>   <a href="#">cd clone,</a>   <a href="#">Corel...</a>   
<a href="#">avi dvd,</a>   <a href="#">Google Earth,</a>   <a href="#">outlook,</a>    <strong><a href="#">Hot Search Keywords</a></strong></div>
</div>
<div id="wz">
Your are here > <a href="#">Dvd Convvet</a> > <a href="#">Video Editors</a> > <?php echo $keyword ?> - Your free download</div>

<div id="main">
<div id="left" class="tr1">
<div id="lmb">
<h2 class="lbt">Related Searches</h2>
<ul id="hot">
<li><a href="#">windows live mail download </a></li>  
<li><a href="#">photoshop cs2 download </a></li>  
<li><a href="#">google talk download </a></li> 
<li><a href="#">download orbit </a></li> 
<li><a href="#">down free limewire basic  </a></li>
<li><a href="#">free limewire basic </a></li> 
<li><a href="#">limewire basic  </a></li>
<li><a href="#">limewire basic download</a></li>  
<li><a href="#">limewire basic free </a></li>
<li><a href="#">free download limewire basic plus </a></li> 
<li><a href="#">down limewire basic </a></li>
<li><a href="#">windows live mail download </a></li>  
<li><a href="#">photoshop cs2 download </a></li>  
<li><a href="#">google talk download </a></li> 
<li><a href="#">download orbit </a></li> 
<li><a href="#">down free limewire basic  </a></li>
<li><a href="#">free limewire basic </a></li> 
<li><a href="#">limewire basic  </a></li>
<li><a href="#">limewire basic download</a></li>  
<li><a href="#">limewire basic free </a></li>
<li><a href="#">free download limewire basic plus </a></li> 
<li><a href="#">down limewire basic </a></li>
</ul>

<img src="http://www.downloadto.com/images/1_13.jpg" />
</div>
  <div class="add"><script type="text/javascript"><!--
google_ad_client = "pub-6095026974399688";
/* 160x600, 创建于 11-5-11 */
google_ad_slot = "6186671689";
google_ad_width = 160;
google_ad_height = 600;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script></div>
</div>
<div id="right" class="tl">
<div id="rmb">
<div id="rbt"><h3><?php echo $keyword ?> free download archives</h3>
</div>
<div id="rnr">
<hr class="x">
<div class="add">
<script type="text/javascript"><!--
google_ad_client = "pub-6095026974399688";
/* 336x280, 创建于 11-5-11 */
google_ad_slot = "0652046987";
google_ad_width = 336;
google_ad_height = 280;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>
</div>
</div>
<div class="mc">Free <?php echo $keyword?> Download</div>
<div id="news">

<img src="http://www.downloadto.com/images/1_22.jpg" />
<strong><a href="#">Sothink Video Encoder for Adobe Flash 2.5</a></strong>[ 17.5MB | Freeware | Win All ]<br />
Sothink Video Encoder for Adobe Flash, also called Flash Video Encoder.</div>

<img src="http://www.downloadto.com/images/1_19.jpg" /></div>


<?php if(count($sumSoftwareList)>0){?>
<div id="rmb">
<div id="rbt"><h3><?php echo $keyword ?> in Short Description</h3>
</div>
<div id="rnr">
<hr class="x">
<?php
foreach ($sumSoftwareList as $software) {
?>
<div id="news" class="lx">
<img class="thumb" src="<?php echo $software['thumb']?>"/>
<strong><a href="detail.php?id=<?php echo $software['id']?>"><?php echo $software['name']." ".$software['version'];?></a></strong>[ <?php echo $software['size']; ?> | Freeware | Win All ]<br />
<?php echo $software['summary'] ;?>
</div>
<?php
}
?>
</div>

<img src="http://www.downloadto.com/images/1_19.jpg" />
</div>
<?php } ?>
<?php if(count($descSoftwareList)>0){?>
<div id="rmb">
<div id="rbt"><h3><?php echo $keyword ?> free download in Long Description</h3>
</div>
<div id="rnr">
<hr class="x">
<?php
foreach ($descSoftwareList as $software) {
?>
<div id="news" class="lx">
<img class="thumb" src="<?php echo $software['thumb']?>"/>
<strong><a href="detail.php?id=<?php echo $software['id']?>"><?php echo $software['name']." ".$software['version'];?></a></strong>[ <?php echo $software['size']; ?> | Freeware | Win All ]<br />
<?php echo $software['summary'] ;?>
</div>
<?php
}
?>
</div>

<img src="http://www.downloadto.com/images/1_19.jpg" />
</div>
<?php } ?>
</div>

<div id="key">
<strong>Popular KeyWords:</strong> <a href="#">installer</a> | <a href="#">Style P</a> | <a href="#">Safari</a> | <a href="#">Juke box</a> | <a href="#">Media Manager</a> | <a href="#">Guy Game</a> | <a href="#">avi to dvd</a> | <a href="#">Google Earth</a> | <a href="#">avi to dvd</a> | <a href="#">Google Earth</a> | <a href="#">outlook</a> | <a href="#">cd clode</a> | <a href="#">Corel DRAW</a> | <a href="#">Big Fish Game</a> | <a href="#">pim</a> | <a href="#">movie maker</a> | <a href="#">Virtual PC</a></div>

<div id="foot">Copyright <a href="#">DownloadTo.com</a> &copy; 2001 - 2011  All rights reserved.</div>
</div>


<div class="clear"></div>
</div>
</div>

</body>
</html>
